package day03;

public class OperDemo1 {
    public static void main(String[] args) {
        System.out.println(5%2); //1,商2余1
        System.out.println(2%5);
        System.out.println(8%2);
        System.out.println(0%5);

//        int a=5,b=5;
//        a++;
//        ++b;
//        System.out.println(a);
//        System.out.println(b);

//        int c=5,d=5;
//        int e=c++;
//        int f=++d;
//        System.out.println(c);
//        System.out.println(d);
//        System.out.println(e);
//        System.out.println(f);

        int a=5,b=5;
        a--;
        --b;
        System.out.println(a);
        System.out.println(b);

        int c=5,d=5;
        int e=c--;
        int f=--d;
        System.out.println(c);
        System.out.println(d);
        System.out.println(e);
        System.out.println(f);


    }
}
